import time
# print(time.time())

# 格式化时间:
# 字符串类型
# print(time.strftime("%Y-%m-%d %H:%M:%S"))
# print(time.strftime("%y-%m-%d %H:%M:%S  %A"))
# ret = time.strftime("%Y{}%m{}%d{} %H:%M:%S")
# print(ret)
# print(ret.format('年','月','日'))

# print(time.localtime())


# 时间戳 转化成 格式化时间
# timestamp = time.time()
# st = time.localtime(timestamp)
# # print(st)
# ft = time.strftime("%y-%m-%d %H:%M:%S",st)
# print(ft)


# 格式化时间转化成时间戳
# ft = time.strftime("%y-%m-%d %H:%M:%S")
# # print(ft)
# st = time.strptime(ft,"%y-%m-%d %H:%M:%S")
# # print(st)
# timestamp = time.mktime(st)
# print(timestamp)
